{% extends "base.html" %}
{% load comments.comments %}

{% block extra_head %}
    <link rel="alternate" type="application/rss+xml" title="RSS {{ tag_list|join:", "|title }}" href="/feeds/rss/{{ tag_list|join:"/" }}/" />
	<link rel="alternate" type="application/xml" title="Atom {{ tag_list|join:", "|title }}" href="/feeds/atom/{{ tag_list|join:"/" }}/" />
{% endblock %}

{% block content %}
{% for tag in related_tags %}
    {{ tag }}
{% endfor %}
{% for post in post_list%}
{% get_free_comment_count for journal.post post.id as comment_count %}

<div>
    <h2><a href="{{ post.get_absolute_url }}" title="">{{ post.title }}</a> {{ post.tags }} ({{ comment_count }} commentaires)</h2>
    <img src="/media/{{ post.image }}" alt="" />
    {{ post.summary_html }}
</div>
{% endfor %}
{% endblock %}